<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>预告详情</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="../../plugins/mui/mui.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="../../css/literary/forecast_detail.css">
</head>
<body>
    <header class="mui-bar mui-bar-nav header">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title">预告详情</h1>
    </header>
    <div class="section">
        <!--<h2>活动预告-本周预告</h2>
        <p>2017-05-18</p>
        <div id="main">
            活动详细
        </div>-->
    </div>

    <script src="../../plugins/mui/mui.min.js"></script>
    <script src="../../plugins/jquery/jquery-3.1.0.min.js"></script>
    <script src="../../js/getApiToken.js"></script>
    <script src="../../js/md5.js"></script>
    <script>
		mui.init();
		mui.plusReady(function(){
			var tag_id=plus.webview.currentWebview().detail_id;
	      	console.log(tag_id);
		    var uid=plus.storage.getItem('cg_user_id');
			myAjax('physical/notice/getDetail/','get',{id:tag_id,},function(data){
				if(data.code==0){
					var html=
	            		'<h2>'+data.data.title+'</h2>'+
					    '<p>'+data.data.create_time+'</p>'+
					    '<div id="main">'+data.data.content+'</div>';
					    
					$('.section').append(html);
					$('#main').find('img').each(function(){
					    $(this).css({'width':'100%','height':'auto'});
					});
				}else{
					mui.alert(data.msg);
				}
			})
		})
    </script>
</body>
</html>